<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>文件上传</title>
	<link rel="stylesheet" href="<%=request.getContextPath() %>/js/plugins/layui/css/layui.css">
</head>
<body>
	<input name="file" class="layui-upload-file" type="file"> 
	<script src="<%=request.getContextPath()%>/js/jquery.min.js?v=2.1.4"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/plugins/layui/layui.js"></script>
	<script type="text/javascript">
	layui.use('upload', function(){
		layui.upload({
	    	url: '<%=request.getContextPath() %>/test/upload' //上传接口
	    	,title: '部署流程'//按钮名称
	    	,ext: 'zip|rar' //支持的格式
	    	,success: function(res){ //上传成功后的回调
	      		alert(res.msg);
	    	}
	  	});
	});
	</script>
</body>
</html>